time: 2021.3
# -*- coding: utf-8 -*-
# @Time    : 2021/3/22 19:09
# @Author  : luogan
# @Email   : 468640092@qq.com
# @File    : 2021.3.21罗干作业--质数.py
# @Software: PyCharm.

# sum = 0
# for i in range (100,501):
#     sum = sum + 1
#     if sum/sum==1 and sum/1==sum:
#         print(i)
lst = []
for i in range(100, 501):
    for j in range(2, i):
        if i % j == 0:
            break
    else:
        lst.append(i)
print(lst)
